package com.personnalManagerSystem.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.personnalManagerSystem.model.Position;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.personnalManagerSystem.model.Position2;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liqing
 * @since 2022-03-31
 */
@Mapper
public interface PositionMapper extends BaseMapper<Position> {

    List<Position2>    queryPositionItem(@Param(Constants.WRAPPER)QueryWrapper<Position2> wrapper);
    @Select("select * from position where position_name=#{positionName}")
    Position checkPositionName(String positionName);
}
